package com.example.demo.com.example.prototype.simple;

import java.util.ArrayList;

public class PrototypeTest {
    public static void main(String[] args) {
        ConcretePrototype concretePrototype = new ConcretePrototype(18,"ben",new ArrayList<>());

        ConcretePrototype clientPrototype = concretePrototype.clone();

        System.out.println(concretePrototype.getAge() == clientPrototype.getAge());
    }
}
